﻿<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Test Fixture</Title>
			<Description>Inserts the TestFixture attribute</Description>
			<Shortcut>tf</Shortcut>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Code Language="CSharp"><![CDATA[[TestFixture]]]></Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>SetUp</Title>
			<Shortcut>setup</Shortcut>
			<Description>Creates a SetUp method (w/ appropriate attribute)</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Code Language="CSharp"><![CDATA[[SetUp]
public void SetUp()
{
$end$
}]]></Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Test</Title>
			<Shortcut>test</Shortcut>
			<Description>Creates a Test method</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>method</ID>
					<Default>TestSomething</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp"><![CDATA[[Test]
public void $method$()
{
$end$
}]]></Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Not Null</Title>
			<Shortcut>nn</Shortcut>
			<Description>Inserts Assert.IsNotNull and prompts values</Description>
			<SnippetTypes>
				<SnippetType>SurroundsWith</SnippetType>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>value</ID>
					<Default>value</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[Assert.IsNotNull($value$);$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Are Equal</Title>
			<Shortcut>ae</Shortcut>
			<Description>Asserts that the actual value is equal to the expectation</Description>
			<SnippetTypes>
				<SnippetType>SurroundsWith</SnippetType>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>expected</ID>
					<Default>expected</Default>
				</Literal>
				<Literal>
					<ID>actual</ID>
					<Default>actual</Default>
				</Literal>
			</Declarations>
			<Code Language="CSharp">
				<![CDATA[Assert.AreEqual($expected$, $actual$);$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Assert Fail</Title>
			<Shortcut>af</Shortcut>
			<Description>Force test to fail.</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Code Language="CSharp">
				<![CDATA[Assert.Fail();$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>NUnit Using</Title>
			<Shortcut>nu</Shortcut>
			<Description>Inserts NUnit using statement</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Code Language="CSharp"><![CDATA[using NUnit.Framework;
			$end$]]></Code>
		</Snippet>
	</CodeSnippet>

	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>Check Argument Null</Title>
			<Shortcut>an</Shortcut>
			<Description>If argument is null throws exception.</Description>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>argument</ID>
					<Default>argument</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp">
				<![CDATA[if ($argument$ == null)
 throw new ArgumentNullException("$argument$");]]>
			</Code>
		</Snippet>
	</CodeSnippet>
	
</CodeSnippets>
